﻿<div class="cl pd-5 bg-1 bk-gray mb-10">
  <a class="btn btn-primary radius" onclick="layer_show('添加管理员','__MODULE__/Role/adminAddEdit','','')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加管理员</a>
  <span class="r">共有数据：<strong>{$rows}</strong> 条</span>
</div>
<table id="xctable" class="table table-border table-bordered table-hover table-bg table-sort">
  <thead>
    <tr class="text-c">
      <th width="40">编号</th>
      <th width="80" id="ad_name" onClick="tab_sort(this)"><div class="">管理员姓名</div></th>
      <th width="80" id="ad_phone" onClick="tab_sort(this)"><div class="">手机号</div></th>
      <th width="80" id="ad_email" onClick="tab_sort(this)"><div class="">邮箱</div></th>
      <th width="80" id="ad_state" onClick="tab_sort(this)"><div class="">是否启用</div></th>
      <th width="80">操作</div></th>
    </tr>
  </thead>
  <volist name="list" id="vo" >
  <tr class="text-c" id="role_{$vo.ad_id}">
    <td>{$i}</td>
    <td>{$vo.ad_name}</td>
    <td>{$vo.ad_phone}</td>
    <td>{$vo.ad_email}</td>
    <td><img width="20" src="__PUBLIC__/admin/images/<if condition='($vo[ad_state] eq 1)'>y.png<else />n.png</if>" onclick="changeTableVal('admin','ad_id={$vo.ad_id}','ad_state',this)"/></td>
    <td><a onclick="layer_show('修改信息','__MODULE__/Role/adminAddEdit?id={$vo.ad_id}','','')" href="javascript:;">编辑</a> | 
      <a onclick="role_del(this,{$vo.ad_id})" href="javascript:;">删除</a>
    </td>
  </tr>
  </volist>
</table>
{$page}<!-- 分页-->
<script type="text/javascript">
$(".pagination a").click(function(){
	var page = $(this).data('p');
	ajax_get_table('myfrom1',page);
});
</script>
